function RPController($scope, $routeParams, $http, Project, $resource){
	$scope.name = "RPController";
	$scope.params = $routeParams;
	$scope.phones = Project.get();	
	$scope.key  = '6348256714038520009a57d1d2-5188-457b-854b-86aafea65fc5';
	$scope.otroEdit = false; 

	//$scope.form.keyfield = $scope.key;
    $scope.hola = function (authkey){
    
    	$scope.key  = authkey;
    	$scope.phones = Project.get({Creden:authkey});		
    }
    
     $scope.editAuth = function(){
        $scope.otroEdit=true;
    };
    
    $scope.doneEditing = function () {
        $scope.otroEdit = false;
    };
};
